<!DOCTYPE html>
<html>
<head>
    <title>Logical OR Example 2</title>
    <script type="text/javascript">
    
        var found = false;
        var result = (found || someUndeclaredVariable);    //error occurs here
        alert(result);    //this line never executes


    </script>

</head>
<body>
  
</body>
</html>